///**
// * @file SlaveCard.c
// * @author liqiang (liqiang@hacint.com.cn)
// * @brief 
// * @version 1.0.0
// * @date 2023-08-17
// * 
// * 
// */

//#include 	"SlaveCard.h"
//#include 	"Bus.h"

//typedef union _DataStatusBusStu
//{
//	struct
//	{
//		unsigned status     :16;	//  状态总线         
//		unsigned data       :16;	//  数据总线
//	} Bus; 
//	unsigned int All32;
//}Bus32Stu;





//unsigned	short	Read_Data_Bus(void){
//			DinBusClose()		;
//			StatusBusClose()	;
//			DataBusOpen()		;

//			return	Read_Bus()	;
//}


//unsigned	short	Read_Status_Bus(void){
//			DataBusClose()		;
//			StatusBusClose()	;
//			DataBusOpen()		;

//			return	Read_Bus()	;
//}

//unsigned	int	Read_StatusData_Bus(void){
//			Bus32Stu  	dataStatusUn; 
//			unsigned	int		rxData;

//			dataStatusUn.Bus.data = Read_Data_Bus();  
//			dataStatusUn.Bus.status = Read_Status_Bus();

//			do{
//			rxData = dataStatusUn.All32;		
//			dataStatusUn.Bus.data = Read_Data_Bus();  
//			dataStatusUn.Bus.status = Read_Status_Bus();
//			}while(rxData!=dataStatusUn.All32);

//			return dataStatusUn.All32;  
//}

//void write_Ctrl_BusH(unsigned short data){
//		ControlBusClose();	//关闭控制总线 
//		write_Bus(data); 	//总线写数据

//		ControlBusHighOpen();	 	//打开控制总线 
//		ControlBusHighClose();		//锁存数据
//		ControlBusClose();			//关闭控制总线
//}

////写控制总线 低
//void write_Ctrl_BusL(unsigned short data){
//		ControlBusClose();	//关闭控制总线 
//		write_Bus(data); 	//总线写数据

//		ControlBusLowOpen();	 	//打开控制总线低
//		ControlBusLowClose();	//锁存数据
//		ControlBusClose();	//关闭控制总线
//}

//unsigned	short	Get_High16(unsigned	int	data){
//		unsigned short	BusData;
//		BusData	=	(data&0X00FF0000)>>8	;
//		return	BusData;
//}
//unsigned	short	Get_Low16(unsigned	int	data){
//		unsigned short	BusData;
//		BusData	=	(data&0XFFFF )	;
//		return	BusData;	
//}
////写控制总线 
//void write_Ctrl_Bus(unsigned int data){ 
//		write_Ctrl_BusH(Get_High16(data));
//		write_Ctrl_BusH(Get_Low16(data)); 
// 
//}







